export default class TodoEntity {
  id: number = 1;
  title: string = '';
  desc: string = '';
}

export function createEmptyEntity(): TodoEntity {
  var entity = new TodoEntity();
  entity.id = newIndex;
  newIndex++;
  return entity;
}

export const firstEntity: TodoEntity = null;

var newIndex = 1;
